#!/usr/bin/env python
# -*- coding:utf-8 -*-

from flask_restful import Api

from . import questionanswer_blueprint
from api.questionAnswerResource.questionAnswerResource import QuestionAnswerResource
from api.questionAnswerResource.questionAnswerOtherResource import QuestionAnswerOtherResource

api = Api(questionanswer_blueprint)

api.add_resource(QuestionAnswerResource, '/questionAnswer/<qa_id>', '/questionAnswer', endpoint='QuestionAnswer')


@questionanswer_blueprint.route('/questionanswer/update/<qa_id>', methods=['PUT'], endpoint='QuestionAnswerUpdate')
def update(qa_id):
    return QuestionAnswerOtherResource.sensitive_update(qa_id)
